package com.lazyJr.test.SetTest;

/**
 * Created by liuyangfx on 16-3-7.
 */
public class SetTest {

    static class Base{
        private Info info;

        public Info getInfo() {
            return info;
        }

        public void setInfo(Info info) {
            this.info = info;
        }
    }
    static class Info{
        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        private String name;
    }

    public static void main(String[] args) {
        Base base = new Base();
        Info info = new Info();
        base.setInfo(info);
        info.setName("hah");
        System.out.println(base.getInfo().getName());
    }
}
